namespace Aurora.TaskScheduler.Abstractions.SchedulerAttributes;

[AttributeUsage(AttributeTargets.Class)]
public class CronAttribute : Attribute
{
    /// <summary>
    /// cron 表达式
    /// </summary>
    public string Cron { get; set; }

    /// <summary>
    /// cron 的描述
    /// </summary>
    public string CronName { get; set; }

    /// <summary>
    /// group 的分组名称
    /// </summary>
    public string GroupName { get; set; }

    /// <summary>
    /// task的展示名称
    /// </summary>
    public string TaskName { get; set; }

    /// <summary>
    /// 方法类的描述
    /// </summary>
    public string Description { get; set; }
    public CronAttribute(string cron, string cronName = default, string taskName = default,string description=default)
    {
        Cron = cron;
        CronName = cronName;
        TaskName = taskName;
        Description = description;
    }
}